//-----------------------------------------------------------------------------------------
#include "quest.h"
//-----------------------------------------------------------------------------------------
Quest::Quest(){
	Activate();
}
//-----------------------------------------------------------------------------------------
Quest::~Quest(){


}
//-----------------------------------------------------------------------------------------
bool Quest::IsItemAdded(string name)
{
	m_kVecQuest.push_back(name);
	return true;
}
//-----------------------------------------------------------------------------------------
bool Quest::IsQuestCompleted()
{
	Desactivate();
	//onTaskComplet();
	onComplete();
	return true;
} 
//-----------------------------------------------------------------------------------------
void Quest::onStart()
{

}
//-----------------------------------------------------------------------------------------
void Quest::onComplete()
{

}
//-----------------------------------------------------------------------------------------
void Quest::onTaskComplet()
{

}
//-----------------------------------------------------------------------------------------
void Quest::onEvent(Event *pkEvent, Component* dispatcher)
{
	if(pkEvent->getEvent() == "Completa")
	{
		m_kDescrip = " Quest del troll completa";
		DispachEvent(pkEvent);
	}
}
//-----------------------------------------------------------------------------------------